#ifndef __PIT_H__
#define __PIT_H__

#define PIT0 0
#define PIT1 1

#define PIT_CLEAR_FLAG(index) (PIT_TFLG(index)=PIT_TFLG_TIF_MASK)

int pit_init(int pit, uint32 cnts);
int pit_init_ms(int pit, uint32 ms);

void pit_disable(int pit);
void pit_enable(int pit);

#endif
